/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.hycreate.platform.modules.crm.todaycustomer;

import java.util.Date;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hycreate.platform.common.persistence.DataEntity;


/**
 * 今日的客户Entity
 * @author zzf
 * @version 2016-12-03
 */
public class TodayCalendar extends DataEntity<TodayCalendar> {
	
	private static final long serialVersionUID = 1L;
	private Date beginTime;		// 开始时间
	private Date endTime;		// 结束时间
	private String customerId;		// 客户id
	private String status;		// 状态
	private String content;		// 内容
	private String contactId;		// 联系人
	private String operateMan;		// 跟进人
	private String title;  //标题
	private String cuname;
	private String ctname;
	
	public String getCuname() {
		return cuname;
	}

	public void setCuname(String cuname) {
		this.cuname = cuname;
	}

	
	
	public TodayCalendar() {
		super();
	}

	public TodayCalendar(String id){
		super(id);
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="开始时间不能为空")
	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="结束时间不能为空")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	@Length(min=1, max=64, message="客户id长度必须介于 1 和 64 之间")
	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
	
	@Length(min=1, max=6, message="状态长度必须介于 1 和 6 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=500, message="内容长度必须介于 0 和 500 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=64, message="联系人长度必须介于 0 和 64 之间")
	public String getContactId() {
		return contactId;
	}

	public void setContactId(String contactId) {
		this.contactId = contactId;
	}
	
	@Length(min=0, max=64, message="跟进人长度必须介于 0 和 64 之间")
	public String getOperateMan() {
		return operateMan;
	}

	public void setOperateMan(String operateMan) {
		this.operateMan = operateMan;
	}

	public String getCtname() {
		return ctname;
	}

	public void setCtname(String ctname) {
		this.ctname = ctname;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public TodayCalendar(Date beginTime, Date endTime, String customerId,
			String status, String content, String contactId, String operateMan,
			String title, String cuname, String ctname) {
		super();
		this.beginTime = beginTime;
		this.endTime = endTime;
		this.customerId = customerId;
		this.status = status;
		this.content = content;
		this.contactId = contactId;
		this.operateMan = operateMan;
		this.title = title;
		this.cuname = cuname;
		this.ctname = ctname;
	}
	
}